cmake_minimum_required (VERSION 2.8)
project (MASTERSOCKET)

add_library (masterSocket
  clientTCP.cpp serverTCP.cpp
  clientUDP.cpp serverUDP.cpp
  serverhtml.cpp clienthtml.cpp
)

add_executable(clientTCP
  clientTCP.cpp
)
add_executable(serverTCP
  serverTCP.cpp
)
add_executable(clientUDP
  clientUDP.cpp
)
add_executable(serverUDP
  serverUDP.cpp
)
add_executable(clienthtml
  clienthtml.cpp
)
add_executable(serverhtml
  serverhtml.cpp
)
target_link_libraries(clientTCP masterSocket)
target_link_libraries(serverTCP masterSocket)
target_link_libraries(clientUDP masterSocket)
target_link_libraries(serverUDP masterSocket)
target_link_libraries(serverhtml masterSocket)
target_link_libraries(clienthtml masterSocket)

